package sktit.practice.jpaint.canvas;

import java.util.ArrayList;

public class CanvasManager {
	private ArrayList<Canvas> shapeCanvas;
	private ArrayList<Canvas> activeCanvas;
	
	public CanvasManager()
	{
		shapeCanvas = new ArrayList<Canvas>();
		activeCanvas = new ArrayList<Canvas>();
	}
	
	public void draw()
	{
		for(int i = 0; i < shapeCanvas.size(); i++)
		{
			shapeCanvas.get(i).draw();
		}
		for(int j = 0; j < activeCanvas.size(); j++)
		{
			activeCanvas.get(j).drawBorder();
		}
	}
	
	public void add(Canvas c)
	{
		shapeCanvas.add(c);
	}
	
	public void clear()
	{
		shapeCanvas.clear();
		activeCanvas.clear();
	}
	
}
